package com.gxks.lhs.config;

import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "pay.alipay")
public class AlipayConfig {

    private String serverUrl;
    private String appId;
    private String privateKey;
    // ... 其他属性

//    @Bean
//    public AlipayClient alipayClient() {
//        return new DefaultAlipayClient(
//                serverUrl,
//                appId,
//                privateKey,
//                format,
//                charset,
//                alipayPublicKey,
//                signType);
//    }
}